package com.cw.starter.mq.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.cw.starter.mq.producer.MqMessageProducer;

/**
 * rocketmq配置
 *
 * @author chenw
 * @date 2021/7/28
 */
@Configuration
public class RocketmqConfig {
    static {
        System.setProperty("rocketmq.client.logUseSlf4j","true");
        System.setProperty("rocketmq.client.logLevel","WARN");
    }
    @Bean
    public MqMessageProducer mqMessageProducer(){
        return new MqMessageProducer();
    }
}
